export interface WorkflowParams {
    prompt?: string;
    negative_prompt?: string;
    steps?: number;
    cfg_scale?: number;
    seed?: number;
    width?: number;
    height?: number;
    sampler_name?: string;
    scheduler?: string;
    denoise?: number;
    model?: string;
    [key: string]: any; // 允许其他参数
}

export interface WorkflowNodeInputs {
    text?: string;
    steps?: number;
    cfg?: number;
    seed?: number;
    width?: number;
    height?: number;
    [key: string]: any; // 允许其他输入参数
}

export interface WorkflowNode {
    type: string;
    inputs: WorkflowNodeInputs;
    class_type?: string;
    [key: string]: any; // 允许其他属性
}

export interface Workflow {
    nodes: Record<string, WorkflowNode>;
    [key: string]: any; // 允许其他属性
}